package com.blb.io;

public class FightTest {

    public static void main(String[] args) {
        //创建被装饰者
        Fight man = new Ironman();
        man.move();
        man.attack();
        //创建装饰者
        Fight ironman = new FightAmor(man);
        ironman.move();
        ironman.attack();
    }
}
